package top.lv666.graduation_design_serve.service;

import top.lv666.graduation_design_serve.pojo.Blog;
import top.lv666.graduation_design_serve.pojo.Topic;

import java.util.List;
import java.util.Map;

public interface TopicService {
    // 创建话题
    void createTopic(Map<String, Object> map);

    // 创建话题附属博客
    void createTopicBlog(Map<String, Object> map);

    // 获取该话题下的博文
    List<Blog> getTopicBlogHot(Map<String, Object> map);

    // 获取话题列表
    List<Topic> getTopicList(int getPage, int getNumber);

    // 获取话题列表
    List<Topic> getHotSearchTopicList(int getPage, int getNumber);

    // 获取个数
    int getCount();

    // 获取当前话题详细信息
    Topic getTopicById(String Id);
}

